package web.servlet;

import domain.Account;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

public class SignOnFormServlet extends HttpServlet {

    private static final String SIGN_ON_FORM = "/WEB-INF/jsp/account/signon.jsp";

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        //日志功能有待一起实现
//        HttpSession session = req.getSession();
//
//        Account account = (Account) session.getAttribute("account");
//        if (account != null){
//            HttpServletRequest httpServletRequest = req;
//            String strBackURL = "http://" + req.getServerName() + ":" + req.getServerPort() +
//                    httpServletRequest.getContextPath() + httpServletRequest.getServletPath() + "?";
//
//        }

        req.getRequestDispatcher(SIGN_ON_FORM).forward(req,resp);
    }
}
